FROM python:3.7.13
RUN curl  -L https://dubhe.oos-cn.ctyunapi.cn:443/dubhe-visual-server-v2.zip  -o /home/dubhe-visual-server-v2.zip
RUN cd /home/ && unzip dubhe-visual-server-v2.zip
RUN cd /home/dubhe-visual-server-v2/ && pip install -r requirements.txt  -i https://mirrors.aliyun.com/pypi/simple/
WORKDIR /home/dubhe-visual-server-v2/
RUN chmod +x start_server.sh
RUN cd backend && python manage.py migrate
CMD ["bash","start_server.sh"]